package com.lty.zyq.dao;

import com.lty.zyq.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserDao extends JpaRepository<User, Long> {

    Integer countByIdAndNameAndDepartment(Long id, String name, String department);

    User findByNameAndDepartment(String name, String department);

    User getById(Long id);

    List<User> findByDepartment(String department);

    List<User> findByIdIn(List<Long> ids);
}
